/**
 * 封装与商家有关的请求的方法
 */
import http from "@/utils/http";
import { businessLoginUrl, businessListUrl, businessRegistUrl } from "./url"
/**
 * 封装商家登录
 */
export function businessLogin(username, password) {
    return http.get(businessLoginUrl, {
        params: {
            username,
            password
        }
    })
}
/**
 * 封装商家注册
 */
export function businessRegist(data) {
    return http.post({
        url: businessRegistUrl,
        data
    })
}
/**
 * 封装查询商家列表
 */
export const businessList = (businessName) =>{
    return http.get(businessListUrl, {
        params: {
            businessName,
        }
    })
}